package com.hcc.unitTest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 交易明细
 * </p>
 *
 * @author admin
 * @since 2023-11-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("trade_info")
public class TradeInfo extends Model<TradeInfo> {


    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 直播间id(外部系统)
     */
    @TableField("live_room_id")
    private String liveRoomId;

    /**
     * 直播间标题
     */
    @TableField("live_room_title")
    private String liveRoomTitle;

    /**
     * 直播开始时间
     */
    @TableField("live_start_time")
    private LocalDateTime liveStartTime;

    /**
     * 直播结束时间
     */
    @TableField("live_end_time")
    private LocalDateTime liveEndTime;

    /**
     * 店铺简称
     */
    @TableField("shop_short_name")
    private String shopShortName;

    /**
     * 统计的日期
     */
    @TableField("statistical_date")
    private LocalDateTime statisticalDate;

    /**
     * 平台类型-app
     */
    @TableField("platform_type")
    private String platformType;

    /**
     * 订单类型
     */
    @TableField("order_type")
    private String orderType;

    /**
     * 商品名称
     */
    @TableField("item_name")
    private String itemName;

    /**
     * 商品id
     */
    @TableField("item_id")
    private String itemId;

    /**
     * 父订单号
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 子订单号
     */
    @TableField("child_order_id")
    private String childOrderId;

    /**
     * 商品型号类型
     */
    @TableField("model_type")
    private String modelType;

    /**
     * 下单用户名称
     */
    @TableField("order_user_name")
    private String orderUserName;

    /**
     * 下单金额
     */
    @TableField("order_amount")
    private BigDecimal orderAmount;

    /**
     * 下单时间
     */
    @TableField("order_time")
    private LocalDateTime orderTime;

    /**
     * 成交时间
     */
    @TableField("delivery_time")
    private LocalDateTime deliveryTime;

    /**
     * 商品类型
     */
    @TableField("item_type")
    private String itemType;

    /**
     * 来源渠道
     */
    @TableField("source")
    private String source;

    @TableField("logic_delete")
    private Integer logicDelete;

    @TableField("modified_time")
    private LocalDateTime modifiedTime;

    @TableField("modifier")
    private Long modifier;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("creator")
    private Long creator;


    public static final String ID = "id";

    public static final String LIVE_ROOM_ID = "live_room_id";

    public static final String LIVE_ROOM_TITLE = "live_room_title";

    public static final String LIVE_START_TIME = "live_start_time";

    public static final String LIVE_END_TIME = "live_end_time";

    public static final String SHOP_SHORT_NAME = "shop_short_name";

    public static final String STATISTICAL_DATE = "statistical_date";

    public static final String PLATFORM_TYPE = "platform_type";

    public static final String ORDER_TYPE = "order_type";

    public static final String ITEM_NAME = "item_name";

    public static final String ITEM_ID = "item_id";

    public static final String ORDER_ID = "order_id";

    public static final String CHILD_ORDER_ID = "child_order_id";

    public static final String MODEL_TYPE = "model_type";

    public static final String ORDER_USER_NAME = "order_user_name";

    public static final String ORDER_AMOUNT = "order_amount";

    public static final String ORDER_TIME = "order_time";

    public static final String DELIVERY_TIME = "delivery_time";

    public static final String ITEM_TYPE = "item_type";

    public static final String SOURCE = "source";

    public static final String LOGIC_DELETE = "logic_delete";

    public static final String MODIFIED_TIME = "modified_time";

    public static final String MODIFIER = "modifier";

    public static final String CREATE_TIME = "create_time";

    public static final String CREATOR = "creator";

}
